package com.common.playing.apps.comm.util;

public class ParseUtil {
	public static int parseInteger(String value, int defaultValue) {
		try {
			return Integer.valueOf(value);
		} catch (Exception e) {

		}

		return defaultValue;
	}

	public static long parseLong(String value, long defaultValue) {
		try {
			return Long.valueOf(value);
		} catch (Exception e) {
			
		}
		
		return defaultValue;
	}
	
	public static float parseFloat(String value, float defaultValue) {
		try {
			return Float.valueOf(value);
		} catch (Exception e) {
			
		}
		
		return defaultValue;
	}



}